package com.hopes.bizz.risk.integral.listener;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hopes.bizz.risk.integral.entity.RiskIntegralEventEntity;
import com.hopes.bizz.risk.integral.entity.RiskIntegralRecordEntity;
import com.hopes.bizz.risk.integral.service.RiskIntegralEventService;
import com.hopes.bizz.risk.integral.service.RiskIntegralRecordService;

/**
 * @author yumr
 * @ProjectName bizz
 * @time 2023/8/23 10:49
 */
public abstract class IntegralEventSupport implements IntegralEventHandler<RiskIntegralRecordEntity>{

    private final RiskIntegralEventService riskIntegralEventService;
    private final RiskIntegralRecordService riskIntegralRecordService;

    protected IntegralEventSupport(RiskIntegralEventService riskIntegralEventService, RiskIntegralRecordService riskIntegralRecordService) {
        this.riskIntegralEventService = riskIntegralEventService;
        this.riskIntegralRecordService = riskIntegralRecordService;
    }
    @Override
    public IService<RiskIntegralRecordEntity> getService() {
        return riskIntegralRecordService;
    }

    @Override
    public IService<RiskIntegralEventEntity> getEventService() {
        return riskIntegralEventService;
    }

}
